package com.example.myapplication.beans;

import java.util.Date;

public class ProductImg {

    //根据返回值数值类型创建实体类
    private String id;
    private String itemId;
    private String url;
    private int sort;
    private int isMain;
    private Date createdTime;
    private Date updatedTime;

    public ProductImg(String id, String itemId, String url, int sort, int isMain, Date createdTime, Date updatedTime) {
        this.id = id;
        this.itemId = itemId;
        this.url = url;
        this.sort = sort;
        this.isMain = isMain;
        this.createdTime = createdTime;
        this.updatedTime = updatedTime;
    }

    public ProductImg() {
    }

    @Override
    public String toString() {
        return "ProductImg{" +
                "id='" + id + '\'' +
                ", itemId='" + itemId + '\'' +
                ", url='" + url + '\'' +
                ", sort=" + sort +
                ", isMain=" + isMain +
                ", createdTime=" + createdTime +
                ", updatedTime=" + updatedTime +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getIsMain() {
        return isMain;
    }

    public void setIsMain(int isMain) {
        this.isMain = isMain;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}
